package cn.buk.tms.dto;

import cn.buk.tms.entity.misc.GroupRole;
import cn.buk.tms.entity.misc.GroupUsers;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.Set;

public class GroupDto {

    private int id;

    private String groupName;

    private Set<GroupRole> authorities;

    private Set<GroupUsers> users;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8")
    private Date createTime;

    private Date lastUpdate;

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Set<GroupRole> getAuthorities() {
        return authorities;
    }

    public void setAuthorities(Set<GroupRole> authorities) {
        this.authorities = authorities;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastUpdate() {
        return lastUpdate;
    }

    public void setLastUpdate(Date lastUpdate) {
        this.lastUpdate = lastUpdate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public Set<GroupUsers> getUsers() {
        return users;
    }

    public void setUsers(Set<GroupUsers> users) {
        this.users = users;
    }
}
